package wfw.cn.ktc_friend.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import wfw.cn.ktc_common.entity.Result;
import wfw.cn.ktc_friend.client.impl.UserClientImpl;

@FeignClient(value = "ktc-user",fallback = UserClientImpl.class)
public interface UserClient {

    @PutMapping(value = "/user/updateFansCount/{userid}/{count}")
    public Result updateFansCount(@PathVariable("userid") String userid, @PathVariable("count") Integer count);

    @RequestMapping(value = "/user/updateFollowCount/{userid}/{count}", method = RequestMethod.PUT)
    public Result updateFollowCount(@PathVariable("userid") String userid,@PathVariable("count") Integer count);
}
